package com.csp.mingyue.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csp.mingyue.system.api.entity.SysOperateLog;
import com.csp.mingyue.system.mapper.SysOperateLogMapper;
import com.csp.mingyue.system.service.SysOperateLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统操作日志 服务实现类
 * </p>
 *
 * @author Strive
 * @since 2023-11-13 03:35:43
 */
@Service
@RequiredArgsConstructor
public class SysOperateLogServiceImpl extends ServiceImpl<SysOperateLogMapper, SysOperateLog>
		implements SysOperateLogService {

	@Override
	public Boolean saveOperateLog(SysOperateLog dto) {
		dto.setOperateTime(LocalDateTime.now());
		return this.save(dto);
	}

}
